package com.uniview.service;

import java.util.List;

import com.uniview.entity.po.RegionManager;
import com.uniview.entity.vo.Pager;

public interface RegionManagerService {
	
	/**
	 * 新增区域
	 * @param rm
	 * @return
	 */
	public Integer saveRegion(RegionManager rm) throws Exception;
	
	/**
	 * 修改区域
	 * @param rm
	 * @return
	 */
	public boolean updateRegion(RegionManager rm) throws Exception;
	
	
	/**
	 * 删除区域
	 * @param Id
	 * @return
	 */
	public boolean deleteRegion(Integer Id) throws Exception;
	
	/**
	 * 根据id查找
	 * @param Id
	 * @return
	 * @throws Exception
	 */
	public RegionManager findRegionManager(Integer Id) throws Exception; 
	
	
	/**
	 * 查找区域
	 * @param regionName
	 * @param pageSize
	 * @param pageNo
	 * @return
	 */
	public Pager<RegionManager> findRegionByPage(String regionName,int pageSize,int pageNo) throws Exception;
	
	public Pager<RegionManager> findRegionByPageBySingle(String regionName,int pageSize,int pageNo) throws Exception;
	
	/**
	 * 查找区域
	 * @param regionName
	 * @return
	 */
	public List<RegionManager> findAllRegion(String regionName) throws Exception;
	
	
	/**
	 * 根据工号查找服务经理
	 * @param workNo
	 * @return
	 */
	public RegionManager findRegionManagerByWorkNo(String workNo);
	
	/**
	 * 根据办事处名称精确查找
	 * @param regionName
	 * @return
	 * @throws Exception
	 */
	public RegionManager findRegionManagerByRegionName(String regionName) throws Exception;

}
